def file_read():
    data_li = []
    with open('file.txt', 'r',encoding='utf8') as file:
        for data in file.readlines():
            if not data.startswith('#'):
                data_li.append(data)
    return data_li
print(file_read())
